﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        function move() {
            if (document.getElementById("currText").scrollLeft == document.getElementById("currText").scrollWidth - 120) {
                document.getElementById("currText").scrollLeft = 0;
            }
            else {
                document.getElementById("currText").scrollLeft += 1;
            }
        }
    </script>
</head>
<body onload="setInterval('move()',5);alert(document.getElementById('currText').scrollWidth)">
<div id="currText" style="overflow:hidden;width:120px; border:2px solid yellow;" >gesdljkdfhd'flh;dfkh;ldfh;dh;lkdhdfhdgslg;dsgsdgsdgdsgdsgdsgsdgdsgsdgsdgsdg
</div>
</body>
</html>
